<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TEvent类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_event.html">TEvent</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_t_event-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TEvent类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TEvent 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_event.png" usemap="#awtk.TEvent_map" alt=""/>
  <map id="awtk.TEvent_map" name="awtk.TEvent_map">
<area href="classawtk_1_1_t_cmd_exec_event.html" alt="awtk.TCmdExecEvent" shape="rect" coords="171,56,332,80"/>
<area href="classawtk_1_1_t_done_event.html" alt="awtk.TDoneEvent" shape="rect" coords="171,112,332,136"/>
<area href="classawtk_1_1_t_drop_file_event.html" alt="awtk.TDropFileEvent" shape="rect" coords="171,168,332,192"/>
<area href="classawtk_1_1_t_error_event.html" alt="awtk.TErrorEvent" shape="rect" coords="171,224,332,248"/>
<area href="classawtk_1_1_t_key_event.html" alt="awtk.TKeyEvent" shape="rect" coords="171,280,332,304"/>
<area href="classawtk_1_1_t_model_event.html" alt="awtk.TModelEvent" shape="rect" coords="171,336,332,360"/>
<area href="classawtk_1_1_t_multi_gesture_event.html" alt="awtk.TMultiGestureEvent" shape="rect" coords="171,392,332,416"/>
<area href="classawtk_1_1_t_offset_change_event.html" alt="awtk.TOffsetChangeEvent" shape="rect" coords="171,448,332,472"/>
<area href="classawtk_1_1_t_orientation_event.html" alt="awtk.TOrientationEvent" shape="rect" coords="171,504,332,528"/>
<area href="classawtk_1_1_t_paint_event.html" alt="awtk.TPaintEvent" shape="rect" coords="171,560,332,584"/>
<area href="classawtk_1_1_t_pointer_event.html" alt="awtk.TPointerEvent" shape="rect" coords="171,616,332,640"/>
<area href="classawtk_1_1_t_progress_event.html" alt="awtk.TProgressEvent" shape="rect" coords="171,672,332,696"/>
<area href="classawtk_1_1_t_prop_change_event.html" alt="awtk.TPropChangeEvent" shape="rect" coords="171,728,332,752"/>
<area href="classawtk_1_1_t_system_event.html" alt="awtk.TSystemEvent" shape="rect" coords="171,784,332,808"/>
<area href="classawtk_1_1_t_theme_change_event.html" alt="awtk.TThemeChangeEvent" shape="rect" coords="171,840,332,864"/>
<area href="classawtk_1_1_t_value_change_event.html" alt="awtk.TValueChangeEvent" shape="rect" coords="171,896,332,920"/>
<area href="classawtk_1_1_t_wheel_event.html" alt="awtk.TWheelEvent" shape="rect" coords="171,952,332,976"/>
<area href="classawtk_1_1_t_window_event.html" alt="awtk.TWindowEvent" shape="rect" coords="171,1008,332,1032"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae01962dbecb1f5d4bad32bf314007ac0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#ae01962dbecb1f5d4bad32bf314007ac0">TEvent</a> (long <a class="el" href="classawtk_1_1_t_event.html#aede2b8f4ca1f04e2ac01814f947c4304">nativeObj</a>)</td></tr>
<tr class="separator:ae01962dbecb1f5d4bad32bf314007ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a964ae7dc0cbb10e46a40dbf8ecda543f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#a964ae7dc0cbb10e46a40dbf8ecda543f">getType</a> ()</td></tr>
<tr class="separator:a964ae7dc0cbb10e46a40dbf8ecda543f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcce6c53414eceb6b510eda03195779b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#abcce6c53414eceb6b510eda03195779b">destroy</a> ()</td></tr>
<tr class="separator:abcce6c53414eceb6b510eda03195779b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac28b02dc1473875e50bd2dad0989849f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#ac28b02dc1473875e50bd2dad0989849f">getSize</a> ()</td></tr>
<tr class="separator:ac28b02dc1473875e50bd2dad0989849f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedcabbe1dbd556316bb6a07bcefdf87e"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#aedcabbe1dbd556316bb6a07bcefdf87e">getTime</a> ()</td></tr>
<tr class="separator:aedcabbe1dbd556316bb6a07bcefdf87e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add2b6613b1e1ae53c15db5f6c2361e19"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#add2b6613b1e1ae53c15db5f6c2361e19">getTarget</a> ()</td></tr>
<tr class="separator:add2b6613b1e1ae53c15db5f6c2361e19"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab2ab11fa6f541612f29e4746fa5bf9f6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#ab2ab11fa6f541612f29e4746fa5bf9f6">cast</a> (long <a class="el" href="classawtk_1_1_t_event.html#aede2b8f4ca1f04e2ac01814f947c4304">nativeObj</a>)</td></tr>
<tr class="separator:ab2ab11fa6f541612f29e4746fa5bf9f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf92f325c5d73dc6c56d6bd15227a21d"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#acf92f325c5d73dc6c56d6bd15227a21d">fromName</a> (String name)</td></tr>
<tr class="separator:acf92f325c5d73dc6c56d6bd15227a21d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a067587ea5a1a4108468531562ee3ccd9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#a067587ea5a1a4108468531562ee3ccd9">cast</a> (<a class="el" href="classawtk_1_1_t_event.html">TEvent</a> event)</td></tr>
<tr class="separator:a067587ea5a1a4108468531562ee3ccd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe7494adb31ef8d50da371e4558c948f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#abe7494adb31ef8d50da371e4558c948f">create</a> (int type)</td></tr>
<tr class="separator:abe7494adb31ef8d50da371e4558c948f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aede2b8f4ca1f04e2ac01814f947c4304"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_event.html#aede2b8f4ca1f04e2ac01814f947c4304">nativeObj</a></td></tr>
<tr class="separator:aede2b8f4ca1f04e2ac01814f947c4304"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>事件基类。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ae01962dbecb1f5d4bad32bf314007ac0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae01962dbecb1f5d4bad32bf314007ac0">&#9670;&nbsp;</a></span>TEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TEvent.TEvent </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ab2ab11fa6f541612f29e4746fa5bf9f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2ab11fa6f541612f29e4746fa5bf9f6">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a> awtk.TEvent.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_window_event.html#a8e0e4de2c6c0cfa32043d41cb17e2302">awtk.TWindowEvent</a>, <a class="el" href="classawtk_1_1_t_wheel_event.html#a9dfb8ddb92011592cc460ea976506811">awtk.TWheelEvent</a>, <a class="el" href="classawtk_1_1_t_value_change_event.html#a0da77a69519cc71c28fdadad2e28ff80">awtk.TValueChangeEvent</a>, <a class="el" href="classawtk_1_1_t_theme_change_event.html#ac6f8d43f4117afd1e0dcea37857417cf">awtk.TThemeChangeEvent</a>, <a class="el" href="classawtk_1_1_t_system_event.html#ab65f17d87d9ca5041d2d5b8213bc435e">awtk.TSystemEvent</a>, <a class="el" href="classawtk_1_1_t_prop_change_event.html#aa2254e7176567c99b8e99abc02f6437e">awtk.TPropChangeEvent</a>, <a class="el" href="classawtk_1_1_t_progress_event.html#acfdcfcaab0f8c4286c275bec5dfde5b5">awtk.TProgressEvent</a>, <a class="el" href="classawtk_1_1_t_pointer_event.html#a1d742682e1d090e9cbace7914d8a8534">awtk.TPointerEvent</a>, <a class="el" href="classawtk_1_1_t_paint_event.html#ab9053000fad495ce277d613d4a48b606">awtk.TPaintEvent</a>, <a class="el" href="classawtk_1_1_t_orientation_event.html#a63eeac20b19f4eb2f786647c63eb7108">awtk.TOrientationEvent</a>, <a class="el" href="classawtk_1_1_t_offset_change_event.html#a4ec4b11e6ffd46d005ad06ff8e68aeba">awtk.TOffsetChangeEvent</a>, <a class="el" href="classawtk_1_1_t_multi_gesture_event.html#a8927fb2435c496a7743fa58b235bf6e1">awtk.TMultiGestureEvent</a>, <a class="el" href="classawtk_1_1_t_model_event.html#affcef98ef32a185f84ff7be402ab6a20">awtk.TModelEvent</a>, <a class="el" href="classawtk_1_1_t_key_event.html#a95072ab259c82ab607d45b10803779b5">awtk.TKeyEvent</a>, <a class="el" href="classawtk_1_1_t_error_event.html#a10ca73538781907ce2f118097bc7dee9">awtk.TErrorEvent</a>, <a class="el" href="classawtk_1_1_t_drop_file_event.html#afc72aa39891bf0d7383010b318882ab3">awtk.TDropFileEvent</a>, <a class="el" href="classawtk_1_1_t_done_event.html#a9ceb83de6c6c599279d4fbea042a1349">awtk.TDoneEvent</a> , 以及 <a class="el" href="classawtk_1_1_t_cmd_exec_event.html#af5603492aba2aa3029ddc81dd4a2e80c">awtk.TCmdExecEvent</a> 重载.</p>

</div>
</div>
<a id="a067587ea5a1a4108468531562ee3ccd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a067587ea5a1a4108468531562ee3ccd9">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a> awtk.TEvent.cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_t_event.html">TEvent</a>&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为event对象。</p>
<blockquote class="doxtable">
<p>供脚本语言使用 </p>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>event对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>event对象。 </dd></dl>

<p>被 <a class="el" href="classawtk_1_1_t_window_event.html#a2a191204d17654cfaf5c2f59a032d419">awtk.TWindowEvent</a>, <a class="el" href="classawtk_1_1_t_wheel_event.html#a0698a29516c160709bb26e1ddf903aaf">awtk.TWheelEvent</a>, <a class="el" href="classawtk_1_1_t_value_change_event.html#ad4392b243ef3e875701bd1b8c088d0ae">awtk.TValueChangeEvent</a>, <a class="el" href="classawtk_1_1_t_theme_change_event.html#ad33cd9452cc5e8492ce3f20fa7d2adbe">awtk.TThemeChangeEvent</a>, <a class="el" href="classawtk_1_1_t_system_event.html#ab32b9c12b029b8108f4ede602d2a52a9">awtk.TSystemEvent</a>, <a class="el" href="classawtk_1_1_t_prop_change_event.html#ac49f098896c235f034773e1b0a8b7ee8">awtk.TPropChangeEvent</a>, <a class="el" href="classawtk_1_1_t_progress_event.html#a0cdfe8ec7941f7ad1746e62e6d6506f3">awtk.TProgressEvent</a>, <a class="el" href="classawtk_1_1_t_pointer_event.html#a10244153fb8160f304923dbe0cb0612e">awtk.TPointerEvent</a>, <a class="el" href="classawtk_1_1_t_paint_event.html#a6d1334c5a41ec948bae4d2d28e29730a">awtk.TPaintEvent</a>, <a class="el" href="classawtk_1_1_t_orientation_event.html#a1836b5eb3cef7c35e2ce1e46177acce8">awtk.TOrientationEvent</a>, <a class="el" href="classawtk_1_1_t_offset_change_event.html#ab054b7a395a240fd86beffc0e6e0cc49">awtk.TOffsetChangeEvent</a>, <a class="el" href="classawtk_1_1_t_multi_gesture_event.html#a475cfd3f80fa45e795170f64c75235f5">awtk.TMultiGestureEvent</a>, <a class="el" href="classawtk_1_1_t_model_event.html#a70f78ac7e9d16cc54485f454ff12c183">awtk.TModelEvent</a>, <a class="el" href="classawtk_1_1_t_key_event.html#ab9b1b8b6e195910e6e4b2e806eba7bae">awtk.TKeyEvent</a>, <a class="el" href="classawtk_1_1_t_error_event.html#ae01c9e86538204bcb77fdb765df445cc">awtk.TErrorEvent</a>, <a class="el" href="classawtk_1_1_t_drop_file_event.html#af098f6c504f2963e3fb90d717fb680d6">awtk.TDropFileEvent</a>, <a class="el" href="classawtk_1_1_t_done_event.html#a38a0494dfe36f25530fe2d3e38b50b3d">awtk.TDoneEvent</a> , 以及 <a class="el" href="classawtk_1_1_t_cmd_exec_event.html#a040174ec688549af9baca9ebf780f8fe">awtk.TCmdExecEvent</a> 重载.</p>

</div>
</div>
<a id="abe7494adb31ef8d50da371e4558c948f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe7494adb31ef8d50da371e4558c948f">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_event.html">TEvent</a> awtk.TEvent.create </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建event对象。</p>
<p>主要给脚本语言使用。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>事件类型。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回事件对象。 </dd></dl>

</div>
</div>
<a id="abcce6c53414eceb6b510eda03195779b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcce6c53414eceb6b510eda03195779b">&#9670;&nbsp;</a></span>destroy()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TEvent.destroy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>销毁事件对象。</p>
<p>主要给脚本语言使用。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acf92f325c5d73dc6c56d6bd15227a21d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf92f325c5d73dc6c56d6bd15227a21d">&#9670;&nbsp;</a></span>fromName()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.TEvent.fromName </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>将事件名转换成事件的值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>事件名。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回事件的值。 </dd></dl>

</div>
</div>
<a id="ac28b02dc1473875e50bd2dad0989849f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac28b02dc1473875e50bd2dad0989849f">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEvent.getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>结构体的大小。 </p>

</div>
</div>
<a id="add2b6613b1e1ae53c15db5f6c2361e19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add2b6613b1e1ae53c15db5f6c2361e19">&#9670;&nbsp;</a></span>getTarget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.TEvent.getTarget </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>事件发生的目标对象。 </p>

</div>
</div>
<a id="aedcabbe1dbd556316bb6a07bcefdf87e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedcabbe1dbd556316bb6a07bcefdf87e">&#9670;&nbsp;</a></span>getTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.TEvent.getTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>事件发生的时间点（该时间点并非真实时间）。 </p>

</div>
</div>
<a id="a964ae7dc0cbb10e46a40dbf8ecda543f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a964ae7dc0cbb10e46a40dbf8ecda543f">&#9670;&nbsp;</a></span>getType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TEvent.getType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取event类型。</p>
<dl class="section return"><dt>返回</dt><dd>返回event类型。 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aede2b8f4ca1f04e2ac01814f947c4304"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aede2b8f4ca1f04e2ac01814f947c4304">&#9670;&nbsp;</a></span>nativeObj</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long awtk.TEvent.nativeObj</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>原生对象。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TEvent.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
